﻿<div ng-controller="playingTeamController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a href="javascript:void(0)" ng-click="goBack()">队伍</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">队伍名称</label>
            <div class="col-sm-3">
                <input type="text" name="title" class="form-control " ng-model="model.title" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">图片</label>
            <div class="col-sm-5">
                <input name="img_url" type="file" ngf-select ng-model="model.file" accept="image/*" class="form-control input-sm">
                <img ng-src="{{site.img_url+model.img_url}}" class="img-thumbnail" ng-show="model.img_url" width="60" height="80">
            </div>
            <!--<div class="col-sm-5 form-control-static">
                <span style="color:#d3d3d3">上传图片建议尺寸为：720px*120px！</span>
            </div>-->
        </div>

        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">队伍说明</label>
            <div class="col-sm-10">
                <textarea keditor="editConfig" name="content" class="form-control input-sm" ng-model="model.content" rows="4" w5c-dynamic-element ng-change="textAreaChanged(500)"></textarea>
                <span ng-show="_form.description.$invalid && !_form.description.$pristine" class="w5c-error">请填写队伍说明</span>
                <span class="help-block" id="textcount">0/500</span>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" w5c-form-submit="save()" class="btn btn-primary btn-sm" btn-loading="psdisabled.save" loading-text="保存中..." ng-disabled="psdisabled.save">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>